import { Axios, sqAxios } from '../assets/js/requester/requester'

export const getWeather = () => Axios({
  method: 'get',
  url: '/oa/weather/7days',
  params: {
    fp: 1
  }
})

export const getSyAll = () => Axios({
  method: 'get',
  url: '/oa/statistics/syAll',
  params: {
    eid: 5
  }
})

export const captchaNum = () => Axios({
  method: 'get',
  url: '/oa/user/captcha/new',
  params: {}
})

export const login = (params) => Axios({
  method: 'post',
  url: '/oa/user/dataLogin',
  data: params
})

export const getOrderList = (params) => Axios({
  method: 'get',
  url: '/oa/WlStatictisDatas/list',
  params: params
})

// 工单汇总
export const getKhfwDetail = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/khfwDetail',
  params: params
})

// 工单统计
export const getKhfwDetailRate = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/khfwDetailRate',
  params: params
})

// 工单来源
export const getGdly = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/gdly',
  params: params
})

// 城市列表
export const getCityList = () => Axios({
  method: 'get',
  url: '/oa/statistics/getCityList',
  params:{}
})

// 满意度
export const getKhmyd = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/khmyd',
  params: params
})

// 设备巡检
export const getSbxj = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/sbxj',
  params: params
})

// 产业园
export const getCyy = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/getCyy',
  params: params
})

// 保安保洁
export const getBjba = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/getBjba',
  params: params
})

// 公司详情相关,各城市化管理
export const getGsxq = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/gsxq',
  params: params
})

// 人事行政 员工总人事-中层管理人数
export const getRsxzOne = () => Axios({
  method: 'get',
  url: '/oa/statistics/rsxzOne',
  params: {}
})

// 人事行政 -金色徽章
export const getRsxzTwo = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/rsxzTwo',
  params: params
})

// 网格化管理
export const getWghgl = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/wghgl',
  params: params
})

// 品质监察
export const getPzjc = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/pzjc',
  params: params
})

// 智能化情况
export const getZnhqk = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/znhqk',
  params: params
})

// 财务情况-收费
export const getCwsf = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/cwsf',
  params: params
})

// 财务情况-税金
export const getCwsj = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/cwsj',
  params: params
})

// 财务情况-资产
export const getCwzc = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/cwzc',
  params: params
})

// 小区列表
export const getZonesList = (params) => Axios({
  method: 'get',
  url: '/oa/zones/list',
  params: params
})

// 工单统计三级
export const getKhfwDetailRateRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/khfwDetailRateRound',
  params: params
})

// 设备巡检三级
export const getSbxjRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/sbxjRound',
  params: params
})

// 工单汇总三级
export const getKhfwDetailRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/khfwDetailRound',
  params: params
})

// 客户满意度三级
export const getKhmydZone = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/khmydZone',
  params: params
})

// 秩序服务三级
export const getBjbaRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/getBjbaRound',
  params: params
})

// 人事行政-金色徽章三级
export const getRsxzTwoRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/rsxzTwoRound',
  params: params
})

// 人事行政-在职员工三级
export const getRsxzOneRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/rsxzOneRound',
  params: params
})

// 品质监察三级
export const getPzjcRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/pzjcRound',
  params: params
})

// 智能化情况三级
export const getZnhqkRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/znhqkRound',
  params: params
})

// 网格化管理三级
export const getWghglRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/wghglRound',
  params: params
})

// 公司情况(管理面积,在管项目)三级
export const getGlmjRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/glmjRound',
  params: params
})

// 公司情况(贯标对标)三级
export const getZonePjInfo = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/zonePjInfo',
  params: params
})

// 财务情况(收费)三级
export const getCwsfRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/cwsfRound',
  params: params
})

// 财务情况(收费完成率)三级
export const getCwsfWclRound = (params) => Axios({
  method: 'get',
  url: '/oa/statistics/cwsfWclRound',
  params: params
})

// 社区大脑
export const getAll = (params) => Axios({
  method: 'get',
  url: '/sq/all',
  params: params
})

// 获取开门记录
export const getOpendoorRecord = (params) => Axios({
  method: 'get',
  url: '/sq/getOpendoorRecord',
  params: params
})

// 车辆出入
export const getCarRecords = (params) => Axios({
  method: 'get',
  url: '/sq/getCarRecords',
  params: params
})

// 摄像头
export const getMonitors = (params) => Axios({
  method: 'get',
  url: '/sq/getMonitors',
  params: params
})

// 获取实有人口列表
export const getOwnerList = (params) => Axios({
  method: 'get',
  url: '/sq/ownerList',
  params: params
})

// 获取单位列表
export const getUnitList = (params) => Axios({
  method: 'get',
  url: '/sq/unitList',
  params: params
})

// 实有房屋
export const getHoustList = (params) => Axios({
  method: 'get',
  url: '/sq/houstList',
  params: params
})

// 获取社区和物业人员列表
export const getEmployees = (params) => Axios({
  method: 'get',
  url: '/sq/getEmployees',
  params: params
})

// 工作轨迹记录
export const getListV2 = (params) => sqAxios({
  method: 'get',
  url: '/api2/hk/listV2',
  params: params
})

// 社区大脑跳转到可视化
export const sqdnQucikLogin = (token) => Axios({
  method: 'get',
  url: '/oa/user/sqdn2DataQucikLogin',
  params: {
    token: token
  }
})